﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Manager/SearchMP.master" CodeBehind="EmployeeSearch.aspx.cs" Inherits="Agile_E.ManagerSearch" %>

<asp:Content id="EmpSearch" ContentPlaceHolderID="MPsearchmain" runat="server">
<div>
<h1>Employees:</h1></div>
<table>
<tr>
<td class="SearchTableCell">First Name:</td>
<td style="padding-right:15px"><asp:TextBox ID="txtfname" runat="server"></asp:TextBox></td>
<td class="SearchTableCell">Last Name:</td>
<td><asp:TextBox ID="txtlname" runat="server"></asp:TextBox>
</td>
</tr>
<tr><td class="SearchTableCell">
Employee ID:</td><td>
<asp:TextBox ID="txtEmpID" runat="server" ></asp:TextBox>
</td></tr>
<tr>
<td class="SearchTableCell">Work Phone:</td>
<td><asp:TextBox ID="txtWphone" runat="server"></asp:TextBox>
</td></tr>
<tr>
<td class="SearchTableCell">Cell Phone:</td>
<td><asp:TextBox ID="txtCPhone" runat="server"></asp:TextBox>
</td>
</tr>
</table>
<br />
<asp:Button ID="btnSearch" runat="server" Text="Search" onclick="btnSearch_Click" />&nbsp;
<asp:HyperLink ID="HLaddEmp" runat="server" Text="Add New Employee" NavigateUrl="~/Manager/AddEmployees.aspx"></asp:HyperLink>
<br /><br />

<asp:GridView ID="grdEmployee" runat="server" BackColor="White" DataSourceID="srcEmployee" AutoGenerateColumns="false"
        BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CssClass="CustGridStyle"
        GridLines="Vertical">
    <RowStyle CssClass="CustGridRowStyle" BackColor="#EEEEEE" ForeColor="Black" />
    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
    <AlternatingRowStyle BackColor="#DCDCDC" />
    <Columns>
        <asp:BoundField HeaderText="Last Name" DataField="Last_Name" />
        <asp:BoundField HeaderText="Middle Name" DataField="Middle_Name" />
        <asp:BoundField HeaderText="First Name" DataField="First_Name" />
        <asp:BoundField HeaderText="Employee ID" DataField="Employee_ID" />
        <asp:BoundField HeaderText="Position" DataField="_Position" />
        <asp:BoundField HeaderText="Work Phone" DataField="Work_Phone" />
        <asp:HyperLinkField DataNavigateUrlFields="Employee_ID" DataNavigateUrlFormatString="getEmployee.aspx?EmpID={0}"
               Text="Select" NavigateUrl="~/Manager/getEmployee.aspx" />
    </Columns>
    </asp:GridView>
    
     <asp:SqlDataSource ID="srcEmployee" runat="server" 
        ConnectionString="<%$ ConnectionStrings:TerraNetConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:TerraNetConnectionString.ProviderName %>" ></asp:SqlDataSource>
</asp:Content>
